<script setup lang="ts">
interface Props {
 text?: string
}
const {text='按钮'}= defineProps<Props>()
</script>
<template>
<button class="button">{{ text }}</button>
<slot>
  <button>默认按钮</button>
  </slot>
</template>
<style scoped>
.button{
  background-color: green;
  color: white;
  border-radius: 10px;
  padding: 10px;
  border-width: 0;
}
</style>